module.exports = function (connect) {
  var grunt = require('grunt');
  return [
    connect().use('/dist', connect.static('./dist')),
    connect().use('/app', connect.static('./app')),
    connect().use('/bower_components', connect.static('./bower_components')),
    connect().use('/products', function (req, res, next){
      var products = grunt.file.readJSON('./mockServer/data/products.json');
      res.write(JSON.stringify(products));
      res.end();
    })
  ];
}
